<!doctype html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title><?=$title;?></title>
<meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible">
<meta content="<?=$keyword;?>" name="keyword">
<meta content="<?=$description;?>" name="description">
<link type="text/css" href="<?=STATIC_URL;?>css/common.css" rev="stylesheet" rel="stylesheet">
<link type="text/css" href="<?=STATIC_URL;?>css/home.css" rev="stylesheet" rel="stylesheet">
<link href="<?=STATIC_URL;?>favicon.ico" type="image/x-icon" rel="icon" />
<link href="<?=STATIC_URL;?>favicon.ico" type="image/x-icon" rel="shortcut icon" />
<body>
<div id="container">
  <? include 'com-header.tpl.php'; ?>
  <!------------------------------------>

  <div class="intro">

    <!-----------------search_box------------------->
    <div id="search_box">
      <div class="search_line">
        <div class="break_bg1">区域搜索</div>
        <ul>
            <li><a <?php if(0 == $big_zone_id){ ?>class="current"<?php } ?> href="<?=Base::frontUrl('waimai');?>">全部</a></li>
         <?php
            $bigZoneList = $zone->getZoneList(0);
            foreach($bigZoneList as $zoneItem){
         ?>
            <li><a href="<?=Base::frontUrl('waimai', $zoneItem->pinyin, array('q' => $query));?>" <?php if($zoneItem->zone_id == $big_zone_id){ ?>class="current"<?php } ?>><?=h($zoneItem->name);?></a></li>
         <?php
            }
         ?>
        </ul>
      </div>
      <?php
         $subZoneList = $zone->getZoneList($big_zone_id);
         if($subZoneList && is_array($subZoneList)){
      ?>
      <div class="search_line">
        <div class="break_bg1">板块搜索</div>
        <ul>
         <?php
            foreach($subZoneList as $zoneItem){
         ?>
            <li><a href="<?=Base::frontUrl('waimai', $zoneItem->pinyin, array('q' => $query));?>" <?php if($zoneItem->zone_id == $sub_zone_id){ ?>class="current"<?php } ?>><?=h($zoneItem->name);?></a></li>
         <?php
            }
         ?>
        </ul>
      </div>
      <?
        }
      ?>
      <!--
      <div class="search_line"> <span class="break_bg1">热点商圈</span>
        <ul>
          <li><a href="#">全部</a>
          <li><a class="current" href="#">南山区</a>
          <li><a href="#">罗湖区</a>
          <li><a href="#">福田区</a>
          <li><a href="#">宝安区</a>
          <li><a href="#">龙岗区</a>
          <li><a href="#">盐田区</a>
          <li><a href="#">全部</a>
          <li><a href="#">南山区</a>
          <li><a href="#">罗湖区</a>
          <li><a href="#">福田区</a>
          <li><a href="#">宝安区</a>
          <li><a href="#">龙岗区</a>
          <li><a href="#">盐田区</a>
          <li><a class="current" href="#">所有商圈</a>
          <li><a href="#">华侨城</a>
          <li><a href="#">南山中心区</a>
          <li><a href="#">蛇口</a>
          <li><a href="#">南头</a>
          <li><a href="#">南油</a>
          <li><a href="#">科技园</a>
          <li><a href="#">西丽</a>
        </ul>
      </div>
      <div class="search_line"> <span class="break_bg1">热门餐馆</span>
        <ul>
          <li> <a href="#">毛家饭店</a>
          <li><a href="#">真功夫</a>
          <li><a href="#">肯德基</a>
          <li><a href="#">麦当劳</a>
          <li><a href="#">KTV</a>
          <li><a href="#">婚纱摄影</a>
          <li><a href="#">韦博国际英语</a>
          <li><a href="#">易贝乐少儿英语</a>
        </ul>
      </div>
      -->

      <div class="clear"></div>
    </div>

    <!-----------------search_box------------------->

    <!--site-->
    <div id="SalesList" class="intro_site">
      <h2 class="title"><span>餐馆搜索</span><em></em></h2>
      <div class="site_content">
        <div class="act_item">
          <div class="act_item" id="content">
        <?php
            foreach($result as $store){
                $url     = Base::frontUrl('shop', $store['res_id']);
                $name    = $store['name'];
                $picture = empty($store['picture']) ? STATIC_URL.'img/store_nopic.jpg' : UPLOAD_URL.$store['picture'];
                $bigZone = $zone->getZoneById($store['zone_id']);
                $subZone = $zone->getZoneById($store['subzone_id']);
        ?>
            <dl>
              <dt><a title="<?=h($name);?>" target="_blank" href="<?=$url;?>"><img src="<?=$picture;?>"></a></dt>
              <dd class="item_title"><a title="<?=h($name);?>" target="_blank" href="<?=$url;?>"><?=h($name);?></a></dd>
              <dd>所在位置：
                    <?php if($store['city_deliver']){ ?>
                        <a class="bline" href="#">全城配送</a>
                    <?php }else{ ?>
                        <a class="bline" href="<?=Base::frontUrl('waimai', $bigZone->pinyin);?>"><?=h($bigZone->name);?></a> /
                        <a class="bline" href="<?=Base::frontUrl('waimai', $subZone->pinyin);?>"><?=h($subZone->name);?></a>
                    <?php } ?>
              </dd>
              <dd>送餐时间：<?=$store['delivery_time']; ?></dd>
              <dd>配送区域：<?=h(cutstr($store['delivery_area'], 80));?></dd>
              <!--dd><strong class="item_intro">活动简介：</strong>
                <p class="intro_text">拍鞋网4周年庆的活动开始啦！</p>
              </dd-->
              <dd class="item_link">
                  <a class="link_view" title="立即去『<?=h($name);?>』订餐" target="_blank" href="<?=$url;?>"><span class="exp">立即订餐</span></a>
              </dd>
            </dl>
        <?php
            }
        ?>
          </div>
          <div class="item_page_vis" id="fen_ye">
            <form onSubmit="go_page($(&quot;jump_page&quot;).value);return false;">
              <div class="mod_pagenav">
                <?=$pagestring;?>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
    <!--act-->
    <div class="sidebar">
      <!-- 七月双倍返利 暂时不用 去掉 by DarrenXiao
        <div class="intro_act" id="SalesPicture">

            <h2 class="title"><span>促销优惠</span></h2>
            <div class="act_content">
                <ul class="cnt_commend">
                    <li>
                        <a href="http://fanli.qq.com/dhc/" target="_blank"><img src="http://imgcache.qq.com/club/go/img/act_adv1.jpg" alt="" /></a>
                    </li>
                    <li class="cnt_split"></li>
                    <li>
                        <a href="http://fanli.qq.com/olomo/" target="_blank"><img src="http://imgcache.qq.com/club/go/img/act_adv2.jpg" alt="" /></a>

                    </li>
                </ul>
            </div>
            <div class="act_content_btm"></div>
        </div>
        -->
      <!-- 常见问题 -->
      <div id="AnswerQuestion" class="intro_act">
        <h2 class="title"><span>速定客话题</span><em></em></h2>
 <!--
        <div class="act_content">
          <ul>
            <li><a target="_blank" href="#">什么是购物返积分？</a></li>
            <li><a target="_blank" href="#">如何才能获得积分？</a></li>
            <li><a target="_blank" href="#">返积分比率是多少？在哪些网上商城购物可以得到积分？</a></li>
            <li><a target="_blank" href="#">多长时间得到返积分？</a></li>
            <li><a target="_blank" href="#">我的账户上已经收到积分了，请问如何使用？</a></li>
          </ul>
        </div>
        <div class="act_content_btm"></div>
      </div>
-->
<?php
    $topics = array(
        '美食美味',
        '中午吃什么',
        '秀色可餐',
        '美食介绍',
        '大连美食',
        '大连美味',
        '大连海鲜',
    );
    $atopic = $topics[array_rand($topics)];
    $ptopic = '速订客~'.$atopic;
    if(strpos($atopic, '大连') === false){
        $atopic = '大连~'.$atopic;
    }

?>
<iframe width="100%" height="500"  frameborder="0" scrolling="no" src="http://widget.weibo.com/livestream/listlive.php?language=zh_cn&width=0&height=500&uid=2607714464&skin=1&refer=0&pic=1&titlebar=0&border=1&publish=1&atalk=1&recomm=0&at=0&ptopic=<?=urlencode($ptopic);?>&atopic=<?=urlencode($atopic);?>&appkey=3459119526&dpc=1"></iframe>
    </div>
  </div>

  <!------------------------------------>
  <? include 'com-footer.tpl.php'; ?>
</div>
</body>
</html>
